<?php /* Smarty version 2.6.18, created on 2009-05-07 07:37:33
         compiled from ua-admin/fair_edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'ua-admin/fair_edit.html', 44, false),array('modifier', 'default', 'ua-admin/fair_edit.html', 44, false),array('function', 'html_radios', 'ua-admin/fair_edit.html', 138, false),)), $this); ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->_tpl_vars['Charset']; ?>
">
<link rel="stylesheet" type="text/css" href="css/main.css">
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/prototype.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/popcalendar.js"></script>
<script language="javascript" src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/general.js"></script>
<script src="<?php echo $this->_tpl_vars['JS_PATH']; ?>
js/mixselect.js"></script>
</head>
<body leftmargin="10" topmargin="10">
<table width="101%" border="0" cellpadding="2" cellspacing="6">
  <tr><td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide"><tr>
  <td><div align="left"><a href="#" onClick="parent.main.location='home.php';return false;">控制台</a>&nbsp;&raquo;&nbsp;展会编辑</div></td>
</tr></table>
<form name="editfrm" method="post" enctype="multipart/form-data" action="<?php echo $_SERVER['PHP_SELF']; ?>
">
<input type="hidden" name="id" value="<?php echo $_GET['id']; ?>
" />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
<tr class="header">
  <td colspan="4">展会管理与编辑</td>
</tr>

<tr>
  <td class="altbg1" width="15%"><strong>展会类型:</strong></td>
  <td width="27%" class="altbg2"><select name="Expo[type_id]" id="ExpoTypeId">
	<?php $_from = $this->_tpl_vars['ExpotypeList']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['i']):
?>
	<option value="<?php echo $this->_tpl_vars['k']; ?>
" <?php if ($this->_tpl_vars['k'] == $this->_tpl_vars['one']['ExpoTypeId']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['i']; ?>
</option>
	<?php endforeach; else: ?>
	<option value="0">请补充展会类型</option>
	<?php endif; unset($_from); ?>
	</select></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>所在地区:</strong></span></td>
  <td width="42%" class="altbg2"><select name="countryid" id="countryid" usedata="dataSrc2" subclass="1">
  </select>
    <select name="provinceid" id="provinceid" usedata="dataSrc2" subclass="2">
    </select>
    <select name="cityid" id="cityid" usedata="dataSrc2" subclass="3">
    </select></td>
</tr>

<tr>
  <td class="altbg1" width="15%"><strong>展会标题:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[ea]" type="text" id="ExpoEa" value="<?php echo $this->_tpl_vars['one']['ExpoEa']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>布展时间:</strong></span></td>
  <td width="42%" class="altbg2"><input type="text" name="ExpoEdTime" size="10" value='<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['one']['ExpoEd'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, time()) : smarty_modifier_default($_tmp, time())))) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
' id="date1" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date1"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>展出时间:</strong></td>
  <td width="27%" class="altbg2"><input type="text" name="ExpoEfTime" size="10" value='<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['one']['ExpoEf'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, time()) : smarty_modifier_default($_tmp, time())))) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
' id="date2" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date2"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
  <td width="16%" class="altbg2"><strong>撤展时间:</strong></td>
  <td width="42%" class="altbg2"><input type="text" name="ExpoEgTime" size="10" value='<?php echo ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['one']['ExpoEg'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")))) ? $this->_run_mod_handler('default', true, $_tmp, time()) : smarty_modifier_default($_tmp, time())))) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
' id="date3" readonly>
<a href="javascript:;" onclick='showCalendar(this, $("date3"), "yyyy-mmmm-dd",null,0,-1,-1)'><img src="<?php echo $this->_tpl_vars['tpl_img_path']; ?>
calendar.gif" border="0" alt=""></a></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>展会周期:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[eh]" type="text" id="ExpoEh" value="<?php echo $this->_tpl_vars['one']['ExpoEh']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>展会规模:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[ex]" type="text" id="ExpoEx" value="<?php echo $this->_tpl_vars['one']['ExpoEx']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>展馆名称:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[ei]" type="text" id="ExpoEi" value="<?php echo $this->_tpl_vars['one']['ExpoEi']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>展馆详细地址:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[ec]" type="text" id="ExpoEc" value="<?php echo $this->_tpl_vars['one']['ExpoEc']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>主办单位:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[ek]" type="text" id="ExpoEk" value="<?php echo $this->_tpl_vars['one']['ExpoEk']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>涉及行业:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[ej]" type="text" id="ExpoEj" value="<?php echo $this->_tpl_vars['one']['ExpoEj']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>主办单位详细地址:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[em]" type="text" id="ExpoEm" value="<?php echo $this->_tpl_vars['one']['ExpoEm']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>邮政编码:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[eo]" type="text" id="ExpoEo" value="<?php echo $this->_tpl_vars['one']['ExpoEo']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>主办单位联系电话:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[ep]" type="text" id="ExpoEp" value="<?php echo $this->_tpl_vars['one']['ExpoEp']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>主办单位传真号码:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[eq]" type="text" id="ExpoEq" value="<?php echo $this->_tpl_vars['one']['ExpoEq']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>联系人姓名:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[er]" type="text" id="ExpoEr" value="<?php echo $this->_tpl_vars['one']['ExpoEr']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>联系人Email:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[email]" type="text" id="ExpoEmail" value="<?php echo $this->_tpl_vars['one']['ExpoEmail']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>承办单位名称:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[es]" type="text" id="ExpoEs" value="<?php echo $this->_tpl_vars['one']['ExpoEs']; ?>
"></td>
  <td width="16%" class="altbg2"><span class="altbg1"><strong>协办单位名称:</strong></span></td>
  <td width="42%" class="altbg2"><input name="Expo[et]" type="text" id="ExpoEt" value="<?php echo $this->_tpl_vars['one']['ExpoEt']; ?>
"></td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>参展费用介绍:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[eu]" type="text" id="ExpoEu" value="<?php echo $this->_tpl_vars['one']['ExpoEu']; ?>
"></td>
  <td width="16%" class="altbg2">&nbsp;</td>
  <td width="42%" class="altbg2">&nbsp;</td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>会场广告介绍:</strong></td>
  <td width="27%" class="altbg2"><input name="Expo[ev]" type="text" id="ExpoEv" value="<?php echo $this->_tpl_vars['one']['ExpoEv']; ?>
"></td>
  <td width="16%" class="altbg2">&nbsp;</td>
  <td width="42%" class="altbg2">&nbsp;</td>
</tr>
<tr>
  <td class="altbg1"><strong>报名办法介绍:</strong></td>
  <td class="altbg2"><input name="Expo[ey]" type="text" id="ExpoEy" value="<?php echo $this->_tpl_vars['one']['ExpoEy']; ?>
"></td>
  <td class="altbg2">&nbsp;</td>
  <td class="altbg2">&nbsp;</td>
</tr>
<tr>
  <td class="altbg1" width="15%"><strong>已报名企业:</strong></td>
  <td colspan="3" class="altbg2"><?php echo $this->_tpl_vars['FairCompanies']; ?>
</td>
  </tr>
<tbody id="m_source_addr" style="display:none">
</tbody>
<tbody id="m_source_upload" style="display:block">
</tbody>
<tr>
  <td class="altbg1"><strong>展会内容详情:</strong></td>
  <td colspan="3" class="altbg2"><?php echo $this->_tpl_vars['FCK_EXPOEL']; ?>
</td>
</tr>
<tr>
  <td class="altbg1"><strong>图片:</strong></td>
  <td colspan="3" class="altbg2"><img id="uploadpic" src="<?php if ($this->_tpl_vars['one']['ExpoPicture']): ?>../media/fair/big/<?php echo $this->_tpl_vars['one']['ExpoPicture']; ?>
<?php else: ?>../media/default/big.jpg<?php endif; ?>"  border="0" width="180" height="65" alt="看到这个,表明你的图片出错了!"></td>
</tr>
<tr>
  <td class="altbg1"><strong>附件上传:</strong></td>
  <td colspan="3" class="altbg2"><input type="file" name="pic" id="uploadfile" onChange="preview()" size=25>
（图片要求：文件小于200K，JPG格式或GIF格式均可）</td>
</tr>
<tr>
  <td class="altbg1"><strong>是否有效</strong></td>
  <td colspan="3" class="altbg2"><?php echo smarty_function_html_radios(array('name' => "Expo[status]",'options' => $this->_tpl_vars['ExpoStatus'],'checked' => ((is_array($_tmp=@$this->_tpl_vars['one']['status'])) ? $this->_run_mod_handler('default', true, $_tmp, '1') : smarty_modifier_default($_tmp, '1')),'separator' => ' '), $this);?>
</td>
</tr>



<tr><td colspan="4" class="altbg1"><div align="center">
<input type="submit" name="save" value="保存" class="btn_mouseout" onMouseOver="this.className='btn_mouseover'" onMouseOut="this.className='btn_mouseout'"/>
</div></td>
</tr>
</table>
<br />
<center>
</center>
</form>
</td>
</tr>
</table>
<script language="javascript">
var linkage2 = new Linkage("dataSrc2", "<?php echo $this->_tpl_vars['JS_PATH']; ?>
media/xml/area.xml");
linkage2.BLANK_SELECT = "请选择";
linkage2.init();
</script>
</body>
</html>
